/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* 容器样式 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* 标题样式 */
h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

h2 {
    color: #34495e;
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

/* 表单样式 */
form {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

form input[type="text"],
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

form input[type="text"]:focus,
form textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

form textarea {
    resize: vertical; /* 允许垂直调整大小 */
    min-height: 100px;
}

form input[type="submit"] {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

form input[type="submit"]:hover {
    background-color: #2980b9;
}

/* 分隔线样式 */
hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* 留言列表表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

table tr:hover {
    background-color: #f8f9fa;
}

table tr:nth-child(even) {
    background-color: #f0f7ff;
}

/* 时间戳样式 */
table td:last-child {
    color: #7f8c8d;
    font-size: 0.9rem;
}